package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    public  OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    public OrderVO getorderdetail(Long id);
    public PageResult historypage(int page, int pageSize, Integer status);
    public void cancelorder(Long id);
    public void openanotherorder(Long id);
    public PageResult ordermanage(OrdersPageQueryDTO ordersPageQueryDTO);
    OrderStatisticsVO statistics();
    void confirm(OrdersConfirmDTO ordersConfirmDTO);
    void rejection(OrdersRejectionDTO ordersRejectionDTO);
    void cancel(OrdersCancelDTO ordersCancelDTO);
    void delivery(Long id);
    void complete(Long id);
    void cuidan(Long id);
}
